/*
 * File: J_rl_T03_q3.c
 *
 * MATLAB Coder version            : 5.2
 * C/C++ source code generated on  : 22-Apr-2025 04:16:22
 */

/* Include Files */
#include "J_rl_T03_q3.h"
#include <math.h>
#include <string.h>

/* Function Definitions */
/*
 * J_RL_T03_Q3
 *     U33 = J_RL_T03_Q3(IN1,IN2)
 *
 * Arguments    : const double in1[4]
 *                const double in2[4]
 *                double u33[16]
 * Return Type  : void
 */
void J_rl_T03_q3(const double in1[4], const double in2[4], double u33[16])
{
  double t10;
  double t11;
  double t12;
  double t13;
  double t14;
  double t15;
  double t16;
  double t17;
  double t2;
  double t3;
  double t39;
  double t4;
  double t40;
  double t41;
  double t42;
  double t43;
  double t45;
  double t5;
  double t6;
  double t7;
  double t8;
  double t9;
  /*     This function was generated by the Symbolic Math Toolbox version 8.7.
   */
  /*     21-Apr-2025 11:22:22 */
  t2 = cos(in2[0]);
  t3 = cos(in2[1]);
  t4 = cos(in2[2]);
  t5 = cos(in1[0]);
  t6 = cos(in1[1]);
  t7 = cos(in1[2]);
  t8 = sin(in2[0]);
  t9 = sin(in2[1]);
  t10 = sin(in2[2]);
  t11 = sin(in1[0]);
  t12 = sin(in1[1]);
  t13 = sin(in1[2]);
  t14 = t5 * t6;
  t15 = t5 * t12;
  t16 = t2 * t3;
  t17 = t3 * t8;
  t39 = t17 + t2 * t5 * t9;
  t40 = t15 + t3 * t6 * t11;
  t41 = t16 + -(t5 * t8 * t9);
  t42 = t14 + -(t3 * t11 * t12);
  t5 = t6 * t8;
  t43 = (t2 * t9 * t12 + t5 * t11) + t15 * t17;
  t6 *= t2;
  t45 = (t6 * t9 + t14 * t17) + -(t8 * t11 * t12);
  t17 = (t6 * t11 + t15 * t16) + -(t8 * t9 * t12);
  t5 = (t5 * t9 + t2 * t11 * t12) + -(t14 * t16);
  t3 = t4 * t7;
  u33[0] = (-t13 * t42 - t3 * t40) + t7 * t9 * t10 * t11;
  t6 = t7 * t10;
  u33[1] = (-t13 * t17 - t3 * t5) - t6 * t39;
  u33[2] = (-t13 * t43 + t3 * t45) + t6 * t41;
  u33[3] = 0.0;
  t3 = t4 * t13;
  u33[4] = (-t7 * t42 + t3 * t40) - t9 * t10 * t11 * t13;
  t6 = t10 * t13;
  u33[5] = (-t7 * t17 + t3 * t5) + t6 * t39;
  u33[6] = (-t7 * t43 - t3 * t45) - t6 * t41;
  memset(&u33[7], 0, 9U * sizeof(double));
}

/*
 * File trailer for J_rl_T03_q3.c
 *
 * [EOF]
 */
